package lac.serviceflow.cfg.model;

import java.util.List;

import lac.model.core.cfg.BasicProperty;
import lac.model.core.cfg.CollectionProperty;
import lac.model.core.cfg.IdProperty;
import lac.model.core.cfg.ModelDescribe;
import lac.model.core.cfg.Type;

public class ServiceFlowModelDescribe extends ModelDescribe{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8706725600215152657L;
	
	public ServiceFlowModelDescribe() {
		this.setName("ServiceFlow");
		this.setTableName("pt_serviceflow");
		this.setIdProperty(new IdProperty());
		List<BasicProperty> basicProperties = this.getBasicProperties();
		basicProperties.add(new BasicProperty(Type.String, "name", "stName", 50));
		basicProperties.add(new BasicProperty(Type.String, "describe", "stDescribe", 100));
		
		List<CollectionProperty> collectionProperties = this.getCollectionProperties();
		collectionProperties.add(new CollectionProperty("flowParams", "stFlowId", "ServiceFlowParam"));
		collectionProperties.add(new CollectionProperty("flowMethods", "stFlowId", "ServiceFlowMethod"));
	}

}
